package com.consumersave;

import com.ribbon.MyRibbon;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
//nacos注册
@EnableDiscoveryClient
//远程调用feign注解
@EnableFeignClients
//Ribbon客户端负载均衡注解
@RibbonClients(defaultConfiguration = MyRibbon.class)
public class ConsumerSaveApplication {

    public static void main(String[] args) {
        SpringApplication.run(ConsumerSaveApplication.class, args);
    }

}
